package com.the4man.framework.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by lenovo on 2017/12/11.
 */
public class MessageReplyExample {
    protected String orderByClause;
    protected boolean distinct;
    protected List<MessageReplyExample.Criteria> oredCriteria = new ArrayList();

    public MessageReplyExample() {
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return this.orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return this.distinct;
    }

    public List<MessageReplyExample.Criteria> getOredCriteria() {
        return this.oredCriteria;
    }

    public void or(MessageReplyExample.Criteria criteria) {
        this.oredCriteria.add(criteria);
    }

    public MessageReplyExample.Criteria or() {
        MessageReplyExample.Criteria criteria = this.createCriteriaInternal();
        this.oredCriteria.add(criteria);
        return criteria;
    }

    public MessageReplyExample.Criteria createCriteria() {
        MessageReplyExample.Criteria criteria = this.createCriteriaInternal();
        if(this.oredCriteria.size() == 0) {
            this.oredCriteria.add(criteria);
        }

        return criteria;
    }

    protected MessageReplyExample.Criteria createCriteriaInternal() {
        MessageReplyExample.Criteria criteria = new MessageReplyExample.Criteria();
        return criteria;
    }

    public void clear() {
        this.oredCriteria.clear();
        this.orderByClause = null;
        this.distinct = false;
    }

    public static class Criteria extends MessageReplyExample.GeneratedCriteria {
        protected Criteria() {
        }
    }

    public static class Criterion {
        private String condition;
        private Object value;
        private Object secondValue;
        private boolean noValue;
        private boolean singleValue;
        private boolean betweenValue;
        private boolean listValue;
        private String typeHandler;

        public String getCondition() {
            return this.condition;
        }

        public Object getValue() {
            return this.value;
        }

        public Object getSecondValue() {
            return this.secondValue;
        }

        public boolean isNoValue() {
            return this.noValue;
        }

        public boolean isSingleValue() {
            return this.singleValue;
        }

        public boolean isBetweenValue() {
            return this.betweenValue;
        }

        public boolean isListValue() {
            return this.listValue;
        }

        public String getTypeHandler() {
            return this.typeHandler;
        }

        protected Criterion(String condition) {
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if(value instanceof List) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }

        }

        protected Criterion(String condition, Object value) {
            this(condition, value, (String)null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, (String)null);
        }
    }

    protected abstract static class GeneratedCriteria {
        protected List<MessageReplyExample.Criterion> criteria = new ArrayList();

        protected GeneratedCriteria() {
        }

        public boolean isValid() {
            return this.criteria.size() > 0;
        }

        public List<MessageReplyExample.Criterion> getAllCriteria() {
            return this.criteria;
        }

        public List<MessageReplyExample.Criterion> getCriteria() {
            return this.criteria;
        }

        protected void addCriterion(String condition) {
            if(condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            } else {
                this.criteria.add(new MessageReplyExample.Criterion(condition));
            }
        }

        protected void addCriterion(String condition, Object value, String property) {
            if(value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            } else {
                this.criteria.add(new MessageReplyExample.Criterion(condition, value));
            }
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if(value1 != null && value2 != null) {
                this.criteria.add(new MessageReplyExample.Criterion(condition, value1, value2));
            } else {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
        }

        public MessageReplyExample.Criteria andReplyIdIsNull() {
            this.addCriterion("REPLY_ID is null");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyIdIsNotNull() {
            this.addCriterion("REPLY_ID is not null");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyIdEqualTo(String value) {
            this.addCriterion("REPLY_ID =", value, "replyId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyIdNotEqualTo(String value) {
            this.addCriterion("REPLY_ID <>", value, "replyId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyIdGreaterThan(String value) {
            this.addCriterion("REPLY_ID >", value, "replyId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyIdGreaterThanOrEqualTo(String value) {
            this.addCriterion("REPLY_ID >=", value, "replyId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyIdLessThan(String value) {
            this.addCriterion("REPLY_ID <", value, "replyId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyIdLessThanOrEqualTo(String value) {
            this.addCriterion("REPLY_ID <=", value, "replyId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyIdLike(String value) {
            this.addCriterion("REPLY_ID like", value, "replyId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyIdNotLike(String value) {
            this.addCriterion("REPLY_ID not like", value, "replyId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyIdIn(List<String> values) {
            this.addCriterion("REPLY_ID in", values, "replyId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyIdNotIn(List<String> values) {
            this.addCriterion("REPLY_ID not in", values, "replyId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyIdBetween(String value1, String value2) {
            this.addCriterion("REPLY_ID between", value1, value2, "replyId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyIdNotBetween(String value1, String value2) {
            this.addCriterion("REPLY_ID not between", value1, value2, "replyId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andMsgIdIsNull() {
            this.addCriterion("MSG_ID is null");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andMsgIdIsNotNull() {
            this.addCriterion("MSG_ID is not null");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andMsgIdEqualTo(String value) {
            this.addCriterion("MSG_ID =", value, "msgId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andMsgIdNotEqualTo(String value) {
            this.addCriterion("MSG_ID <>", value, "msgId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andMsgIdGreaterThan(String value) {
            this.addCriterion("MSG_ID >", value, "msgId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andMsgIdGreaterThanOrEqualTo(String value) {
            this.addCriterion("MSG_ID >=", value, "msgId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andMsgIdLessThan(String value) {
            this.addCriterion("MSG_ID <", value, "msgId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andMsgIdLessThanOrEqualTo(String value) {
            this.addCriterion("MSG_ID <=", value, "msgId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andMsgIdLike(String value) {
            this.addCriterion("MSG_ID like", value, "msgId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andMsgIdNotLike(String value) {
            this.addCriterion("MSG_ID not like", value, "msgId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andMsgIdIn(List<String> values) {
            this.addCriterion("MSG_ID in", values, "msgId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andMsgIdNotIn(List<String> values) {
            this.addCriterion("MSG_ID not in", values, "msgId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andMsgIdBetween(String value1, String value2) {
            this.addCriterion("MSG_ID between", value1, value2, "msgId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andMsgIdNotBetween(String value1, String value2) {
            this.addCriterion("MSG_ID not between", value1, value2, "msgId");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyUserIsNull() {
            this.addCriterion("REPLY_USER is null");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyUserIsNotNull() {
            this.addCriterion("REPLY_USER is not null");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyUserEqualTo(String value) {
            this.addCriterion("REPLY_USER =", value, "replyUser");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyUserNotEqualTo(String value) {
            this.addCriterion("REPLY_USER <>", value, "replyUser");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyUserGreaterThan(String value) {
            this.addCriterion("REPLY_USER >", value, "replyUser");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyUserGreaterThanOrEqualTo(String value) {
            this.addCriterion("REPLY_USER >=", value, "replyUser");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyUserLessThan(String value) {
            this.addCriterion("REPLY_USER <", value, "replyUser");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyUserLessThanOrEqualTo(String value) {
            this.addCriterion("REPLY_USER <=", value, "replyUser");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyUserLike(String value) {
            this.addCriterion("REPLY_USER like", value, "replyUser");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyUserNotLike(String value) {
            this.addCriterion("REPLY_USER not like", value, "replyUser");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyUserIn(List<String> values) {
            this.addCriterion("REPLY_USER in", values, "replyUser");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyUserNotIn(List<String> values) {
            this.addCriterion("REPLY_USER not in", values, "replyUser");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyUserBetween(String value1, String value2) {
            this.addCriterion("REPLY_USER between", value1, value2, "replyUser");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyUserNotBetween(String value1, String value2) {
            this.addCriterion("REPLY_USER not between", value1, value2, "replyUser");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyMessagIsNull() {
            this.addCriterion("REPLY_MESSAG is null");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyMessagIsNotNull() {
            this.addCriterion("REPLY_MESSAG is not null");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyMessagEqualTo(String value) {
            this.addCriterion("REPLY_MESSAG =", value, "replyMessag");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyMessagNotEqualTo(String value) {
            this.addCriterion("REPLY_MESSAG <>", value, "replyMessag");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyMessagGreaterThan(String value) {
            this.addCriterion("REPLY_MESSAG >", value, "replyMessag");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyMessagGreaterThanOrEqualTo(String value) {
            this.addCriterion("REPLY_MESSAG >=", value, "replyMessag");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyMessagLessThan(String value) {
            this.addCriterion("REPLY_MESSAG <", value, "replyMessag");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyMessagLessThanOrEqualTo(String value) {
            this.addCriterion("REPLY_MESSAG <=", value, "replyMessag");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyMessagLike(String value) {
            this.addCriterion("REPLY_MESSAG like", value, "replyMessag");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyMessagNotLike(String value) {
            this.addCriterion("REPLY_MESSAG not like", value, "replyMessag");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyMessagIn(List<String> values) {
            this.addCriterion("REPLY_MESSAG in", values, "replyMessag");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyMessagNotIn(List<String> values) {
            this.addCriterion("REPLY_MESSAG not in", values, "replyMessag");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyMessagBetween(String value1, String value2) {
            this.addCriterion("REPLY_MESSAG between", value1, value2, "replyMessag");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyMessagNotBetween(String value1, String value2) {
            this.addCriterion("REPLY_MESSAG not between", value1, value2, "replyMessag");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyTimeIsNull() {
            this.addCriterion("REPLY_TIME is null");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyTimeIsNotNull() {
            this.addCriterion("REPLY_TIME is not null");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyTimeEqualTo(Date value) {
            this.addCriterion("REPLY_TIME =", value, "replyTime");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyTimeNotEqualTo(Date value) {
            this.addCriterion("REPLY_TIME <>", value, "replyTime");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyTimeGreaterThan(Date value) {
            this.addCriterion("REPLY_TIME >", value, "replyTime");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyTimeGreaterThanOrEqualTo(Date value) {
            this.addCriterion("REPLY_TIME >=", value, "replyTime");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyTimeLessThan(Date value) {
            this.addCriterion("REPLY_TIME <", value, "replyTime");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyTimeLessThanOrEqualTo(Date value) {
            this.addCriterion("REPLY_TIME <=", value, "replyTime");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyTimeIn(List<Date> values) {
            this.addCriterion("REPLY_TIME in", values, "replyTime");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyTimeNotIn(List<Date> values) {
            this.addCriterion("REPLY_TIME not in", values, "replyTime");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyTimeBetween(Date value1, Date value2) {
            this.addCriterion("REPLY_TIME between", value1, value2, "replyTime");
            return (MessageReplyExample.Criteria)this;
        }

        public MessageReplyExample.Criteria andReplyTimeNotBetween(Date value1, Date value2) {
            this.addCriterion("REPLY_TIME not between", value1, value2, "replyTime");
            return (MessageReplyExample.Criteria)this;
        }
    }
}
